package com.tsd.common.vo;

import com.tsd.core.utils.HlpUtils;
import com.tsd.system.entity.SysUser;

import java.util.Date;
import java.util.List;

/**
 * @ClassName: BatchDeleteLogicVo
 * @Description: TODO
 * @Author: Hillpool
 * @Date: 2020/8/24 12:07
 * @Version: 1.0
 */
public class BatchDeleteLogicVo {

    private String table_name;

    private Integer dr;

    private Date dr_date;

    private String dr_user_sid;

    private String dr_user_name;

    private List<Long> idList;

    private List<String> sidList;

    private Long id;

    private String sid;

    public BatchDeleteLogicVo() {
    }

    public BatchDeleteLogicVo(SysUser opUser) {
        this.dr = 1;
        this.dr_date = new Date();
        this.dr_user_sid = opUser == null ? null : opUser.getSid();
        this.dr_user_name = opUser == null ? null : opUser.getName();
    }

    public String getTable_name() {
        return table_name;
    }

    public void setTable_name(String table_name) {
        this.table_name = table_name;
    }

    public Integer getDr() {
        return dr;
    }

    public void setDr(Integer dr) {
        this.dr = dr;
    }

    public Date getDr_date() {
        return dr_date;
    }

    public void setDr_date(Date dr_date) {
        this.dr_date = dr_date;
    }

    public String getDr_user_sid() {
        return dr_user_sid;
    }

    public void setDr_user_sid(String dr_user_sid) {
        this.dr_user_sid = dr_user_sid;
    }

    public String getDr_user_name() {
        return dr_user_name;
    }

    public void setDr_user_name(String dr_user_name) {
        this.dr_user_name = dr_user_name;
    }

    public List<Long> getIdList() {
        return idList;
    }

    public void setIdList(List<Long> idList) {
        this.idList = idList;
    }

    public List<String> getSidList() {
        return sidList;
    }

    public void setSidList(List<String> sidList) {
        this.sidList = sidList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public int isEmpty_list() {
        if (!HlpUtils.isEmptyList(this.getIdList())) {
            return 0;
        }
        if (!HlpUtils.isEmptyList(this.getSidList())) {
            return 0;
        }
        return 1;
    }
}
